﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Print_PrintBaoCaoTuyBien : System.Web.UI.Page
{
    
    protected void Page_Load(object sender, EventArgs e)
    {

        //lblngaylapbaocaothongke.Text = string.Format("{0:dd/MM/yyyy}", DateTime.Now);
        //lbltieude.Text = "Danh sách báo cáo thống kê đoàn viên";
        //inthongke();
    }
    public void inthongke()
    {
        //try
        //{
        //    Response.Clear();
        //    Response.AddHeader("content-disposition", "attachment; filename=Danhsachdoanvien.xls");
        //    Response.Charset = "";
        //    Response.ContentType = "application/vnd.xls";
        //    System.IO.StringWriter stringWrite = new System.IO.StringWriter();
        //    System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
        //    GridView1.RenderControl(htmlWrite);
        //    Response.Write(stringWrite.ToString());
        //    Response.End();
        //    Response.Redirect("javascript:window.close()");
        //}
        //catch (Exception ex)
        //{
        //    Response.Write("<script>alert('" + ex.Message + "')</script>");
        //}
    }
    //ham lấy ra từng đoaòn viên một
    //public MemberShip_ASP.LocDoanVien GetDoanVien(string madoanvien)
    //{
    //    return MemberShip_ASP.listDoanVien.Single(r => r.MaDoanVien.Trim() == madoanvien.Trim());
    //}
   
}